package com.dmagic.cms.dao;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.dmagic.cms.common.dao.CommonDao;
import com.dmagic.cms.common.query.PageUtil;
import com.dmagic.cms.common.query.QueryUtil;
import com.dmagic.cms.entity.Company;

@Component
public class CompanyDao extends CommonDao<Company, Long> {
	public void searchContactUs(PageUtil<Map> pageUtil) throws Exception {
		QueryUtil queryUtil = new QueryUtil();
		queryUtil.setQueryKey("getContactUs_sql");
		queryUtil.setPageUtil(pageUtil);
		queryUtil.combineQueryString();
		super.find(queryUtil);
	}

	public void searchAboutUs(PageUtil<Map> pageUtil) throws Exception {
		QueryUtil queryUtil = new QueryUtil();
		queryUtil.setQueryKey("getAboutUs_sql");
		queryUtil.setPageUtil(pageUtil);
		queryUtil.combineQueryString();
		super.find(queryUtil);
	}
}
